package com.lionli.netty.demo.rpc.provider;


import com.lionli.netty.demo.rpc.service.HelloService;

/**
 * 接口实现
 *
 * @author LionLi
 */
public class HelloServiceImpl implements HelloService {

    private static int count = 0;

    @Override
    public String hello(String mes) {
        System.out.println("收到客户端消息 => " + mes);
        return "服务端 => 收到消息 [" + mes + "] 第" + (++count) + "次";
    }
}
